package com.springboot.service.impl;

import com.springboot.dao.Test1StudentDao;
import com.springboot.dao.Test2StudentDao;
import com.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author peter
 * @title: StudentServiceImp
 * @projectName springAll-peter
 * @description: TODO
 * @date 19-5-5下午7:06
 */
@Service("studentService")
public class StudentServiceImp implements StudentService {


    @Autowired
    private Test1StudentDao test1StudentDao;

    @Autowired
    private Test2StudentDao test2StudentDao;

    @Override
    public List<Map<String, Object>> getAllStudentsFromTest2() {
        return test2StudentDao.getAllStudents();
    }

    @Override
    public List<Map<String, Object>> getAllStudentsFromTest1() {
        return test1StudentDao.getAllStudents();
    }
}
